package com.zst.sw.server.pipeline;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

@Getter
@Setter
@ConfigurationProperties(prefix = "sw-server.data-pipeline")
public class DataPipelineProperties {
    /**
     * 单批数据量最大限制
     */
    private int maxBatchSize = 100;
    /**
     * 单批数据最大等待时间
     */
    private int maxBatchIntervalMs = 2000;
    /**
     * 最大缓冲数据批量
     */
    private int maxCacheBatchNum = 5;
}
